package com.example.demo;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.data.jpa.repository.config.EnableJpaRepositories;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.transaction.annotation.EnableTransactionManagement;


@SpringBootApplication
// 开启事物管理
@EnableTransactionManagement
// 开启定时任务
@EnableScheduling
@MapperScan("com.example.demo.mapper")
@EnableJpaRepositories(basePackages = "com.example.demo.config")
@ServletComponentScan(basePackages = "com.example.demo.filter")
public class DemoApplication {
    public static void main(String[] args) {
        SpringApplication application = new SpringApplication(DemoApplication.class);
        application.run(args);
    }
}
